package com.example.seckilldemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.seckilldemo.pojo.User;
import com.example.seckilldemo.vo.LoginVo;
import com.example.seckilldemo.vo.RespBean;

//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;


public interface IUserService extends IService<User> {
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);
//    RespBean doLogin(LoginVo loginVo);
    /**
     * @description: 根据cookie获取用户
     *
     * @param:
     * @return:
     */
    User getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);

    /**
     * @description: 用户更新密码
     *
     * @param:
     * @return:
     */
    RespBean updatePassword(String userTicket, String password, HttpServletRequest request, HttpServletResponse response);

}
